package com.llm.travel_agent_assistant.plan;

import com.llm.travel_agent_assistant.dto.GeneratePlanDTO;
import com.llm.travel_agent_assistant.dto.Result;
import com.llm.travel_agent_assistant.service.OpenAiService;
import jakarta.annotation.Resource;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class ApiTest {

    @Resource
    private OpenAiService openAiService;

    @Test
    public Result generateTravelPlanTest() {
       return openAiService.generateTravelPlan(new GeneratePlanDTO(
               "11111111111","我想去日本，5%20天，预算%201%20万元，喜欢美食和动漫，带孩子"));
    }
}
